# -*- coding: utf-8 -*-
# @Time : 2021/12/10 10:14
# @Author : Limusen
# @File : demo_ui_01

import os
from selenium import webdriver

# # 方法一 将驱动python的安装路径下
# driver = webdriver.Chrome()
# driver.get("https://www.baidu.com")

# 方法二 指定驱动路径运行
driver_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../..', 'webdriver', 'chromedriver93.exe')
driver = webdriver.Chrome(executable_path=driver_path)
driver.get("https://www.baidu.com")
